package com.chefu.client.server;

import com.chefu.common.pojo.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("server-service")
public interface ServerClient {

    /**
     * 根据服务分类id查询服务分类
     */
    @GetMapping("/server/of/serverClassify")
    public R findServerClassify(@RequestParam("id") Long id);


    /**
     * 根据服务分类父id查询服务子分类
     */
    @GetMapping("/of/sonServerClassify")
    public R sonClassifyByParentId(@RequestParam("parentId") Long parentId);
}
